package homework;

/**
 * @ClassName HomeWork01
 * @Description TODO
 * @Author hp
 * @Date 2021/6/18 18:21
 * @Version 1.0
 **/

    interface Inter {
        void show(int a, int b);

        void func();
    }

    class Demo {
        public static void main(String[] args) {
            // 补足代码；调用两个函数，要求用匿名内部类
            Inter inter = new Inter() {
                @Override
                public void show(int a, int b) {
                    System.out.println(a+""+b);
                }

                @Override
                public void func() {
                    System.out.println("实现函数功能");
                }
            };
        }
    }

